﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Gype
{
    public static class ConvertExt
    {
        public static SlimDX.Color4 ToColor(uint value)
        {
            byte[] bytes = BitConverter.GetBytes(value);
            return new SlimDX.Color4(bytes[3] / 255.0f, bytes[2] / 255.0f, bytes[1] / 255.0f, bytes[0] / 255.0f);
        }
    }
}
